Next | Prev | Up | Top | Contents | Index

Checking EFS Filesystem Consistency With fsck

Before checking an EFS filesystem other than the Root filesystem for consistency, the filesystem should be unmounted. (The Root filesystem can be checked while mounted.) Unmounting can be achieved by explicitly unmounting the filesystem, or by shutting the system down and bringing it up in single-user mode. (See the section "Unmounting Filesystems" in this chapter for information on unmounting filesystems and the single(1M) reference page for information on shutting the system down and bringing it up in single-user mode.) Checking unmounted filesystems is described in the section "Checking Unmounted Filesystems" below.

If you cannot shut down the system and cannot unmount the filesystem, but you need to perform the check immediately, you can run fsck in "no-write" mode. The fsck command checks the filesystem, but makes no changes and does not repair inconsistencies. The procedure is explained in the section "Checking Mounted Filesystems" below.

You may find it convenient to check multiple filesystems at once. This is also known as parallel checking. The fsck -m flag is used for parallel checking. For more information about this and other fsck options see the fsck(1M) reference page.


Checking Unmounted Filesystems
Checking Mounted Filesystems

Next | Prev | Up | Top | Contents | Index